package work.chenbo.springboot.elasticsearch.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author ChenBo
 * @className ElasticSearchProperties
 * @date 2020/10/30
 */
@ConfigurationProperties(prefix = "elasticsearch")
@Data
public class ElasticSearchProperties {

    /** ES链接地址 默认localhost:9200 */
    private List<String> uris = new ArrayList<>(Collections.singletonList("localhost:9200"));
}
